package com.gitee.sdlszjb.page;

/**
 * @author 庄壮壮
 * @since 2019-01-15 16:41
 */
public class AniviaPaginationRequestHolder {

    private final static ThreadLocal<AniviaPaginationRequest> autoPaginationRequestThreadLocal = new ThreadLocal<>();

    public static void initRequestHolder(AniviaPaginationRequest request) {
        autoPaginationRequestThreadLocal.set(request);
    }

    public static AniviaPaginationRequest getAutoPaginationRequest() {
        return autoPaginationRequestThreadLocal.get();
    }

    public static void remove() {
        autoPaginationRequestThreadLocal.remove();
    }

}
